package com.itheima.design.mode.jdk_proxy;

public class PlayGame {

    public static void main(String[] args) {

        TuHao th = new TuHao(1.7f);
        Girl tc = new TeacherCang();
        Girl girl1 = (Girl)TonyCompany.proxy(tc);
        th.dating(girl1);

        Boy tch = new TeacherChen();
        Boy boy = (Boy)TonyCompany.proxy(tch);
        boy.dating('E');
        boy.show();

    }
}
